#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>//定时器头文件
#include <QDateTime>//时间类，获取系统时间
#include <QSettings>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void m_setting_init();
    void set_light_fun(uint8_t brightness);

private slots:
    void timer_Update();//定时器更新槽函数
    void on_btn_save_clicked();

private:
    Ui::Widget *ui;
    QTimer *timer_calendar;
    QSettings *settings = nullptr;
};
#endif // WIDGET_H
